package com.zyq.mapper;

import com.zyq.model.request.UserDto;
import com.zyq.model.entity.User;
import com.zyq.model.request.UserRequest;
import com.zyq.model.response.DoctorsResponse;
import com.zyq.model.response.HomePageUser10Response;
import com.zyq.model.response.UserStatusResponse;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * UserMapper
 * @author dolyw.com
 * @date 2018/8/31 14:43
 */
public interface UserMapper extends Mapper<UserDto> {

    int getStatusByAccount(String account);

    int insertUser(User user);

    List<UserStatusResponse> selectUserByParam(User user);

    List<UserStatusResponse> getUnAuthorizedUserList(Long status);
    List<UserStatusResponse> getUnAuthorizedUser();

    int updateStatus(User user);

    List<DoctorsResponse> recommendDoctors();

    UserDto selectById(Integer id);

    /**
     * 查找粉丝
     */
    List<Long> selectFans(Long id);

    /**
     * 今日之星
     * @return
     */
    List<HomePageUser10Response> select10();
}
